package com.bwie.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 
 * @TableName t_hy
 */
@TableName(value ="t_hy")
@Data
public class THy implements Serializable {
    /**
     * 编号
     */
    @TableId(type = IdType.AUTO)
    private Integer hyId;

    /**
     * 好友姓名
     */
    private String hyName;

    /**
     * 好友地址
     */
    private String hyAddr;

    /**
     * 好友手机号
     */
    private String hyPhone;

    /**
     * 性别
     */
    private Integer hySex;

    /**
     * 好友当前状态
     */
    private Integer hyStatus;

    /**
     * 
     */
    private Date hyTime;

    private Integer hyHy;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        THy other = (THy) that;
        return (this.getHyId() == null ? other.getHyId() == null : this.getHyId().equals(other.getHyId()))
            && (this.getHyName() == null ? other.getHyName() == null : this.getHyName().equals(other.getHyName()))
            && (this.getHyAddr() == null ? other.getHyAddr() == null : this.getHyAddr().equals(other.getHyAddr()))
            && (this.getHyPhone() == null ? other.getHyPhone() == null : this.getHyPhone().equals(other.getHyPhone()))
            && (this.getHySex() == null ? other.getHySex() == null : this.getHySex().equals(other.getHySex()))
            && (this.getHyStatus() == null ? other.getHyStatus() == null : this.getHyStatus().equals(other.getHyStatus()))
            && (this.getHyTime() == null ? other.getHyTime() == null : this.getHyTime().equals(other.getHyTime()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getHyId() == null) ? 0 : getHyId().hashCode());
        result = prime * result + ((getHyName() == null) ? 0 : getHyName().hashCode());
        result = prime * result + ((getHyAddr() == null) ? 0 : getHyAddr().hashCode());
        result = prime * result + ((getHyPhone() == null) ? 0 : getHyPhone().hashCode());
        result = prime * result + ((getHySex() == null) ? 0 : getHySex().hashCode());
        result = prime * result + ((getHyStatus() == null) ? 0 : getHyStatus().hashCode());
        result = prime * result + ((getHyTime() == null) ? 0 : getHyTime().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", hyId=").append(hyId);
        sb.append(", hyName=").append(hyName);
        sb.append(", hyAddr=").append(hyAddr);
        sb.append(", hyPhone=").append(hyPhone);
        sb.append(", hySex=").append(hySex);
        sb.append(", hyStatus=").append(hyStatus);
        sb.append(", hyTime=").append(hyTime);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}